package com.singletransaction;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component("userAction")
@Scope(value="prototype")
public class UserActionImpl implements UserAction {
	@Resource
	private UserService userService;
	
	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public void add(UserDto user) {
		userService.saveAndUpdate(user);
	}
}
